package br.edu.ufcg.greengrid.workload;

public class WorkloadWindowInfo {

	private final long aggregateRuntime;
	private final long numJobs;
	private final long startTime;
	private final long endTime;
	private int demandClass;

	public WorkloadWindowInfo(long startTime, long endTime, long aggregateRuntime, long numJobs) {
		this.startTime = startTime;
		this.endTime = endTime;
		this.aggregateRuntime = aggregateRuntime;
		this.numJobs = numJobs;
	}

	public long getStartTime() {
		return startTime;
	}

	public long getAggregateRuntime() {
		return aggregateRuntime;
	}

	public long getNumJobs() {
		return numJobs;
	}

	public long getEndTime() {
		return endTime;
	}
	
	public long getDuration() {
		return endTime - startTime;
	}

	public void setDemandClass(int demandClass) {
		this.demandClass = demandClass;
	}

	public int getDemandClass() {
		return demandClass;
	}
}
